<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2D变化</title>
  <style>
    .outer {
      width: 200px;
      height: 200px;
      border: 2px solid black;
      margin: 0 auto;
      margin-top: 100px;
    }
    .inner {
      width: 200px;
      height: 200px;
      background-color: skyblue;
      transform: translateX(50px)
    }
  </style>
</head>
<body>
  <!-- 
    1. 位移
      transform: translateX
      transform: translateY
      transform: translate
    2. 缩放
      transform: scaleX
      transform: scaleY
      transform: scale
    3. 旋转
      transform: rotateX
      transfrom: rotateY
      transform: rotate
    4. 扭曲
      transform: skewX
      transform: skewY
      transform: skew
    5. 多重变换
      transform: translate(100px, 100px) scale(0.5);
      transform: scale(0.5) translate(100px 100px);
    6. 变换原点
      transform-origin: left top;
      transform-origin: 50px 50px;
   -->
  <div class="outer">
    <div class="inner">你好啊</div>
  </div>
</body>
</html>